// 查询列表接口
const getUserPage = (params) => {
  return $axios({
    url: 'http://localhost:10010/users/page',
    method: 'get',
    params
  })
}

// 删除接口
const deleteUser = (ids) => {
  return $axios({
    url: 'http://localhost:10010/users',
    method: 'delete',
    params: { ids }
  })
}

// 修改接口
const editUser = (params) => {
  return $axios({
    url: 'http://localhost:10010/users',
    method: 'put',
    data: { ...params }
  })
}

// 新增接口
const addUser = (params) => {
  return $axios({
    url: 'http://localhost:10010/users',
    method: 'post',
    data: { ...params }
  })
}

// 批量操作接口
const userStatusByStatus = (params) => {
  return $axios({
    url: 'http://localhost:10010/users/status/${params.status}',
    method: 'post',
    params: { ids: params.ids }
  })
}
